//
// Created by 喵喵乐 on 2023/4/9.
//

#ifndef CMAKECXX_TRACE_H
#define CMAKECXX_TRACE_H

#include <iostream>

using namespace std;

class Trace {
    static int counter;

    int objid;

public:
    Trace() {
        objid = counter++;
        cout << "constucting Trace #" << objid << endl;

        if (objid == 3) throw 3;
    }

    ~Trace() {
        cout << "destructing Trace #" << objid << endl;
    }



};


#endif //CMAKECXX_TRACE_H
